#include <iostream>

class BaseA
{
private:
    int a;
};

class BaseB
{
public:
    int getB()
    {
        return b;
    }
private:
    int b;
};

class Derived:public BaseA
{
public:
    int GetB()
    {
        B.getB();
    }
private:
    BaseB B;//组合
};



int main()
{

    return 0;
}